<template>
  <div>
    <h1>{{ word }}</h1>
    <br />
    <button @click="rev">翻转世界</button>
  </div>
</template>

<script>
export default {
  name: 'Day02App',

  data() {
    return {
      word: 'holle,heima'
    }
  },

  mounted() {},

  methods: {
    rev() {
      this.word = this.word.split('').reverse().join('')
    }
  }
}
</script>

<style lang="scss" scoped></style>
